package grape.workflow.rest.canstartprocess.mapper;

import grape.workflow.rest.canstartprocess.form.CanStartProcessListForm;
import grape.workflow.service.canstartprocess.po.CanStartProcess;
import grape.common.rest.mvc.WebMapper;
import org.mapstruct.Mapper;
import grape.workflow.rest.canstartprocess.form.CanStartProcessCreateForm;
import grape.workflow.rest.canstartprocess.form.CanStartProcessUpdateForm;
import grape.workflow.rest.canstartprocess.form.CanStartProcessListPageForm;
import grape.workflow.rest.canstartprocess.vo.CanStartProcessVo;
import org.mapstruct.ReportingPolicy;
/**
 * <p>
 * 可发起的流程表 前端领域模型映射
 * </p>
 *
 * @author yangwei
 * @since 2020-06-28
 */
@Mapper(componentModel = "spring",unmappedTargetPolicy = ReportingPolicy.IGNORE)
public interface CanStartProcessWebMapper extends WebMapper<CanStartProcessVo, CanStartProcess> {

    CanStartProcess formToPo(CanStartProcessCreateForm f);
    CanStartProcess formToPo(CanStartProcessUpdateForm f);
    CanStartProcess formToPo(CanStartProcessListPageForm f);
    CanStartProcess formToPo(CanStartProcessListForm f);
}
